﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace PersistanceLayer
{
   [Serializable]
   public class ChatBoxMessageData: IChatBoxMessageData
   {
       
       public ChatBoxUserData UserS { get; set; }

       [XmlIgnore]
       public IChatBoxUserData User
       {
           get { return UserS; }

           set { UserS = (ChatBoxUserData) value; }
       }

       [XmlIgnore]
       public int Id { get; set; }

       public String Message { get; set; }

       public ChatBoxMessageData(){}
       public ChatBoxMessageData(IChatBoxUserData u, string message)
        {
            User = u;
            Message = message;
        }
    }
}
